{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>课程详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程标题：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$class.class_title}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程主图：</label>
                            <div class="layui-input-block">
                                    <div class="layui-upload-list img-circle">
                                        <img class="layui-append-img" src="{$class.class_thumb}" onerror="this.src='/static/admin/images/no_img.jpg'">
                                    </div>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">课程图集：</label>
                            <div class="layui-input-block">
                                {if count($class.class_images) > 0}
                                {volist name='class.class_images' id='vo'}
                                <div class="layui-upload-list img-circle">
                                    <img class="layui-append-img" src="{$vo}">
                                </div>
                                {/volist}
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程分类：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$class.c_cate_name}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">观看权限：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$class.class_user_rule}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程类型：</label>
                            <div class="layui-input-block">
                                {if($class.class_type == 1)}
                                <input type="text" class="layui-input" value="免费" disabled>
                                {elseif($class.class_type == 2)}
                                <input type="text" class="layui-input" value="付费" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="兑换码" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">价格：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$class.class_price}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">是否推荐：</label>
                            <div class="layui-input-block">
                                {if($class.class_is_recommend == 1)}
                                <input type="text" class="layui-input" value="推荐" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="不推荐" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">是否热门：</label>
                            <div class="layui-input-block">
                                {if($class.class_is_hot == 1)}
                                <input type="text" class="layui-input" value="热门" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="非热门" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">状态：</label>
                            <div class="layui-input-block">
                                {if($class.class_status == 1)}
                                <input type="text" class="layui-input" value="上架中" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="已下架" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程形式：</label>
                            <div class="layui-input-block">
                                {if($class.class_video_audio == 1)}
                                <input type="text" class="layui-input" value="视频" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="音频" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">章节数：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$class.class_section_number}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">报名人数：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$class.class_apply_number}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">适用人群：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" disabled>{$class.class_shiyong_user}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">讲师姓名：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$class.class_teacher_name}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">讲师头像：</label>
                            <div class="layui-input-block">
                                <div class="layui-upload-list img-circle">
                                    <img class="layui-append-img" src="{$class.class_teacher_image}" onerror="this.src='/static/admin/images/no_img.jpg'">
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">讲师介绍：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" disabled>{$class.class_teacher_intro}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程时效：</label>
                            <div class="layui-input-block">
                                {if($class.class_is_forever == 1)}
                                <input type="text" class="layui-input" value="有时效" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="无时效" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">时效天数：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$class.class_valid_date}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">添加时间：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$class.class_create_time}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">课程详情：</label>
                            <div class="layui-input-block" id="LAY_editor" lay-verify="editor">
                                <p>{$class.class_intro}</p>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
<script>
    var editor = wk.wang({elem:'#LAY_editor'});
</script>
</body>
</html>